﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Erp.Migrations
{
    /// <inheritdoc />
    public partial class modify_column_name_MaterialWhse_EnumInboundType : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AcceptanceDate",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "AcceptanceOpertorLabel",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "AcceptanceOpertorValue",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "EntryDateTime",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "EntryOpertorLabel",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "EntryOpertorValue",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "ReviewTime",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "ReviewerName",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.DropColumn(
                name: "ReviewerValue",
                schema: "Erp",
                table: "InboundRecs");

            migrationBuilder.RenameColumn(
                name: "InWarehouseType",
                schema: "Erp",
                table: "InboundRecs",
                newName: "InboundType");

            migrationBuilder.AddColumn<Guid>(
                name: "TenantId",
                schema: "Erp",
                table: "InboundRecDetls",
                type: "uuid",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TenantId",
                schema: "Erp",
                table: "InboundRecDetls");

            migrationBuilder.RenameColumn(
                name: "InboundType",
                schema: "Erp",
                table: "InboundRecs",
                newName: "InWarehouseType");

            migrationBuilder.AddColumn<DateTime>(
                name: "AcceptanceDate",
                schema: "Erp",
                table: "InboundRecs",
                type: "timestamp without time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "AcceptanceOpertorLabel",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "AcceptanceOpertorValue",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "EntryDateTime",
                schema: "Erp",
                table: "InboundRecs",
                type: "timestamp without time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "EntryOpertorLabel",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "EntryOpertorValue",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "ReviewTime",
                schema: "Erp",
                table: "InboundRecs",
                type: "timestamp without time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ReviewerName",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ReviewerValue",
                schema: "Erp",
                table: "InboundRecs",
                type: "text",
                nullable: true);
        }
    }
}
